package com.fzk.blog.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fzk
 * @date 2021-08-15 15:48
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_user")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String phone;
    private String username;
    private String password;
    @TableField(value = "role_id")
    private Integer roleId;
    @TableField(value = "head_portrait_url")
    private String headPortraitUrl;
    private String address;
    private String sex;
    private String email;
    @TableField(value = "email_flag")
    private Boolean emailFlag;

    @TableLogic
    private Integer flag;
    @TableField(value = "create_time")
    private String createTime;
    @TableField(value = "create_by")
    private Integer createBy;
    @TableField(value = "edit_time")
    private String editTime;
    @TableField(value = "edit_by")
    private Integer editBy;
}
